#ifndef OPTIONSWINDOW_H
#define OPTIONSWINDOW_H

#include <QDirIterator>
#include <iostream>
#include <QString>
#include <QMessageBox>
#include "ui_OptionsWindow.h"
#include "Settings.h"

class OptionsWindow : public QDialog, private Ui::OptionsWindow{
    Q_OBJECT

    public:
    OptionsWindow(QWidget *parent = 0);
    ~OptionsWindow();

    public slots:
    void setDefaultVolume(int percentage);
    void loadSettings();
    //01 : interface
    void setNewLangage(QString langage);
    void setIdExtractionMethod(int id);
    void setIsContinuePlayling(bool isContinuePlaying);
    // 01.1 method 01
    void setAutomaticMaxNSecBefore(int nSecBefore);
    void setAutomaticMaxNSecAfter(int nSecAfter);
    void setAutomaticSensibility(int sensibility);
    void setAutomaticMedianDataSize(int medianDataSize);
    // 01.1 method 02
    void setNormalNSecBefore(int nSecBefore);
    void setNormalNSecAfter(int nSecAfter);
    //02 : subtitle
    //03 : video
    //04 : audio

    private:
    Settings settings;
    void _loadAvailablesLangages();
};

#endif // OPTIONSWINDOW_H
